//
//  ITPickerViewController.m
//  InduceTool
//
//  Created by 魏延龙 on 2020/12/11.
//  Copyright © 2020 魏延龙. All rights reserved.
//

#import "ITPickerViewController.h"
#import "ITDatePicketView.h"
#import <Masonry/Masonry.h>

@interface ITPickerViewController ()

@end

@implementation ITPickerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.view setBackgroundColor:[UIColor whiteColor]];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    [btn setTitle:@"picker" forState:UIControlStateNormal];
    btn.frame = CGRectMake(0, 100, 100, 44);
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(btnAction) forControlEvents:UIControlEventTouchUpInside];
    
}

-(void)btnAction {
    ITDatePicketView *pickerView = [ITDatePicketView showDatePickerView];
    pickerView.leftBtnTitle = @"立即开始";
    pickerView.leftBtnClickBlock = ^(NSDate * _Nonnull date) {
        
    };
    pickerView.rightBtnClickBlock = ^(NSDate * _Nonnull date) {
        
    };
//    ITDatePicketView *picker = [[ITDatePicketView alloc] init];
//    picker.backgroundColor = [UIColor lightGrayColor];
//    [self.view addSubview:picker];
//    [picker mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.right.bottom.mas_equalTo(0);
//        make.height.mas_equalTo(200);
//    }];
}


@end
